﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
@model PessModel.Activity

@{
    ViewBag.Title = "活动基本信息";
}

@*@Html.Partial("_ActivityNavPartial",Model.ID)*@

<div id="m-title">
    <h2>基本信息</h2>

    <div id="m-op">
        @if (Roles.IsUserInRole(Membership.GetUser().UserName, "Admin"))
        {
            @Html.ActionLink("编辑基本信息", "Edit", new { id = Model.ID })<span>&#8195;</span>
            @Html.ActionLink("编辑档案显示名", "Index","ArchiveDisplayNames", new { activityID = Model.ID },new { style="width:130px;"})<span>&#8195;</span>
            @Html.ActionLink("评分进度", "Progress", new { activityID = Model.ID })
        }
        &#8195;@Html.ActionLink("返回", "Index")
    </div>
</div>
<fieldset>
    <div class="f-fl">
        <div class="m-sd-xx m-sd-title">
            <div class="title">
                @Html.DisplayFor(model => model.Name)
            </div>
            <div class="sidebd">
                @*@Html.DisplayFor(model => model.Description)*@
                @if (!Roles.IsUserInRole("CountyAdmin"))
                {
                    @Html.Raw(Model.Description)
                }
            </div>
        </div>
            @if (Roles.IsUserInRole("Admin"))
{
        <div class="m-sd-xx m-sd-title">
            <div class="title">
                进度表 （配额 | 上传数量）
            </div>
            <div class="sidebd displayCoordinate">
                @Html.PivotTable((System.Data.DataTable)ViewData["StatusTable"], "SubjectName", "CountyName", new string[] { "Quota", "Uploaded" })
            </div>
        </div>
}
    </div>

    <div class="f-fr m-sd-xx">
        <div class="title">其它信息</div>
        <div class="sidebd">
       @if (Roles.IsUserInRole("Admin"))
        {
            <div class="displayYear">
                行政年度：@Html.DisplayFor(model => model.AdminYear)
            </div>
            <div class="displayYear">
                @{
            var status = (PessModel.ActivityStatus)Model.Status;
            var statusLocalName = status.ToLocalName();
                }
                活动状态：@Html.DisplayFor(model => statusLocalName)
            </div>
                <div class="displayDTime">
                    活动类型：@Html.DisplayFor(model => model.PessType.Name)
                </div>
    <div class="displaySTime f-add-pt">
        活动开始日期：@Html.DisplayFor(model => model.StartDate)
    </div>
            <div class="displayDTime">
                活动结束日期：@Html.DisplayFor(model => model.DueDate)
            </div>
        }
        @if (Roles.IsUserInRole("Admin") || Roles.IsUserInRole("ExpertJudge"))
        {
            <div class="displaySTime">
                评审开始日期：@Html.DisplayFor(model => model.ReviewStartDate)
            </div>
            <div class="displayDTime">
                评审结束日期：@Html.DisplayFor(model => model.ReviewDueDate)
            </div>
        }
        @if (Roles.IsUserInRole("Admin") || Roles.IsUserInRole("CountyAdmin"))
        {
            <div class="displaySTime">
                申报开始日期：@Html.DisplayFor(model => model.UploadStartDate)
            </div>
            <div class="displayDTime">
                申报结束日期：@Html.DisplayFor(model => model.UploadDueDate)
            </div>
        }
        </div>
    </div>

</fieldset>
